package com.domain.dao;

import com.domain.pojo.Publish;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PublishMapper {
    int deleteByPrimaryKey(String id);

    int insert(Publish record);

    int insertSelective(Publish record);

    Publish selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Publish record);

    int updateByPrimaryKey(Publish record);

    List<Publish> selectPublishByUserId(@Param("userId") String userId);

    int updateForwardCount(@Param("publishId") String publishId);

    List<Map<String, Object>> selectByUserIdMaps(@Param("userId") String userId);

    List<Publish> selectByUsersIdAndFillterFriends(String spareTwo);
}